<?php
/*
 * @Description: 
 * @Author: QinTianyu
 * @Date: 2020-05-07 09:33:06
 * @LastEditors: QinTianyu
 * @LastEditTime: 2020-05-07 10:01:18
 */
namespace app\finance\model;

use think\Model;
use app\finance\model\OtherType as OtherTypeModel;
class OtherType extends Model
{

    public function getOtherTypeTextAttr($value='')
    {
        if(!empty($value)){
            $info = OtherTypeModel::get($value);
            return $info->name;
        }else{
            return '--';
        }
    }
}